package com.phz.springcloud.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import com.phz.springcloud.study.util.Sequence;

import feign.Logger;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
public class StudyAccoutServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(StudyAccoutServiceApplication.class, args);
	}
	
	/**
	 * 高效id支持分布式
	 * @return
	 */
	@Bean
	public Sequence sequence() {
		return new Sequence(10,10);
	}
	
	@Bean
	 Logger.Level feignLoggerLevel() {
		return Logger.Level.FULL;
	}
	

}
